﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Azku.UDPMessageClient
{
    public partial class LoginForm : Form
    {
        public LoginForm()
        {
            InitializeComponent();
        }

        private void btn_login_Click(object sender, EventArgs e)
        {
            try
            {
                ClientUtil.Client pClient = new Azku.ClientUtil.Client("220.162.247.147", 9999);
                //pClient.ThreadStart();
                Common.CTSUserLogin msg = new Azku.Common.CTSUserLogin(txt_username.Text, txt_pwd.Text);
                pClient.SendMsg(msg, pClient.HostIPEndPoint);
                pClient.Dispose();
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
